package canhcuadaihoc.tracnghiemonline;

import java.util.ArrayList;

import android.content.Context;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.ViewGroup;
import android.widget.ArrayAdapter;
import android.widget.Button;
import android.widget.TextView;
import android.widget.Toast;

public class ListQuestionAdapter extends ArrayAdapter<Question>{

	ArrayList<Question> array;
	int resource;
	Context context;
	
	public ListQuestionAdapter(Context context, int textViewResourceId, ArrayList<Question> objs) {
		super(context, textViewResourceId);
		
		this.context=context;
		resource=textViewResourceId;
		array=objs;
	}
	
	@Override
	public View getView(int position, View convertView, ViewGroup parent) {

		View questionView=convertView;
		if(questionView==null){
			
		}
		final Question _ques=array.get(position);
		if(_ques!=null){
			TextView tw_title=((Question_Content_View)questionView).tw_title;
			TextView tw_content=((Question_Content_View)questionView).tw_content;
			
			
		}
		
		return questionView;
	}

	
}
